package com.xc.hotelmgr.datapusherali.config;


import com.xc.hotelmgr.datapusherali.pojo.mybatis.*;
import com.xc.hotelmgr.datapusherali.pojo.request.FzSendRates;
import com.xc.hotelmgr.datapusherali.pojo.request.PsMap;
import com.xc.hotelmgr.datapusherali.pojo.request.RsData;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;

@Configuration
public class EntityConfig {

    @Bean
    public FzSendRates getFzSendRates() {
        return new FzSendRates();
    }

    @Bean
    @Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE)
    public RsData getRsData() {
        return new RsData();
    }

    @Bean
    @Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE)
    public PsMap getPsMap() {
        return new PsMap();
    }

    @Bean
    @Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE)
    public DtUpHtl getDpUpHtl() {
        return new DtUpHtl();
    }

//    @Bean
//    public HtLogicRoom getHtLogicRoom() {
//        return new HtLogicRoom();
//    }
    @Bean
    @Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE)
    public DtPriceConfig getDtPriceConfig() {
        return new DtPriceConfig();
    }

    @Bean
    @Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE)
    public OpCommPrice getOpcommPrice() {
        return new OpCommPrice();
    }

    @Bean
    @Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE)
    public OpHtlPrice getOpHtlPrice() {
        return new OpHtlPrice();
    }

    @Bean
    @Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE)
    public OpRoomPrice getOpRoomPrice() {
        return new OpRoomPrice();
    }

}
